package com.householditemtwo.index.dao;

import com.householditemtwo.common.utils.DBManager;

/**
 * 留言的DAO
 * 
 * @author admin
 *
 */

public class LyDao {

	public int addLy(String name,String phone,String email,String content) {
		String sql=String.format("insert into ly (lycontent,lytime,lyname,lyphone,lyemail,lystate) values('%s',now(),'%s','%s','%s','未读')",
			content,name,phone,email);
		DBManager db=new DBManager();
		int num=db.executeUpdate(sql);
		return num;
	}
}
